package com.jt.tenant.conn;

import com.jt.tenant.app.JTApplication;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@HttpInlet(Conn.INLET_SET_INS_SUP)
public class SetInsSup extends JTAsyGet<SetInsSup.Info> {

    public String token = JTApplication.jtPreferences.readToken();

    public String orderId;//选择的保险报价ID

    public String phname;//投保人姓名

    public String phidcard;//投保人身份证号

    public String phphone;//投保人联系方式

    public String phemail;//投保人邮箱

    public String owner_name;//被保人姓名

    public String idcard;//被保人身份证号

    public String phone;//被保人联系方式

    public String email;//被保人邮箱

    public String outType;//保单寄送方式

    public String recipients;//收件人

    public String recipientsPhone;//收件人联系方式

    public String acceptAddress;//收件人地址


    public SetInsSup(AsyCallBack<Info> asyCallBack) {

        super(asyCallBack);

    }

    @Override
    protected Info parser(JSONObject object) {

        JSONObject apiTYF = object.optJSONObject("apiTYF");

        JSONObject head = apiTYF.optJSONObject("head");

        Info info = new Info();

        info.msg = head.optString("msg");

        return info;
    }

    public static class Info implements Serializable {

        public String msg;

    }


}
